<script lang="ts" setup>
import { token } from "/stores/user";

if (!token.value) {
	uni.redirectTo({
		url: '/pages/login/index'
	})
}
</script>

<style lang="scss">
/*每个页面公共css */
page {
	height: 100%;
	font-size: 28rpx;
	color: #1F2937;
}

.T_page {
	display: flow-root;
	height: 100%;
	padding: 0 30rpx;
	box-sizing: border-box;
	background-color: #f8f8f8;
}

@mixin btn($bg) {
	background-color: $bg !important;
	color: #fff;
	border-radius: 80rpx;
	height: 80rpx;
	line-height: 80rpx;
	font-size: 28rpx;
	width: 100%;
}

button[type="primary"] {
	@include btn(#3B82F6);
}

button[type="warn"] {
	@include btn(#EF4444);
}

.T_form {
	.uni-forms {
		background-color: #fff;
		border-radius: 20rpx;
		padding: 30rpx 30rpx 1rpx;
		margin: 30rpx 0 60rpx;
	}

	.uni-forms-item__label {
		color: #000;
	}

	.uni-forms-item__content {
		display: flex;
		align-items: center;
		gap: 30rpx;

		.uni-easyinput__content-input {
			padding-left: 0 !important;
		}
	}
}

.T_tabs {
	height: 90rpx;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30rpx;
	background-color: #fff;

	>view {
		text-align: center;
		line-height: 1;
		padding: 14rpx 30rpx;
		border-radius: 40rpx;
		font-size: 24rpx;
		color: #6b7280;
		transition: background-color 0.3s, color 0.3s;

		&.T_tabs-active {
			color: #fff;
			background-color: #3b82f6;
		}
	}
}
</style>
